import React from 'react';
import {useParams} from "react-router-dom";

function Detail(props) {

    const {id,title,content}=useParams()

    return (
        <div>
            <ul>
                <li>ID:{id}</li>
                <li>title:{title}</li>
                <li>content:{content}</li>
            </ul>
        </div>
    );
}

export default Detail;